package com.kensure.shike.order.model;

import java.util.Date;
import java.util.List;

import co.kensure.frame.BaseInfo;
import co.kensure.mem.DateUtils;

import com.kensure.shike.card.model.CardUser;
import com.kensure.shike.sys.model.SKDict;
import com.kensure.shike.sys.service.SKDictService;
import com.kensure.shike.user.model.SKUser;

/**
 * 订单支付情况 对象类
 * 
 * @author fankd created on 2019-7-6
 * @since
 */
public class SKFinPay extends BaseInfo {

	private static final long serialVersionUID = 3545276994084105527L;

	/** 主键 */
	private Long id;
	/** 商家id */
	private Long sjid;

	/** 编码 */
	private String code;

	/** 优惠金额 */
	private Double youhui;

	/** 优惠卷id */
	private String youhuiid;

	/** 订单累计，优惠前的价格 */
	private Double leiji;
	/** 订单总价，优惠后的价格 */
	private Double total;

	/** 金额 */
	private Double yue;

	/** 微信支付金额 */
	private Double wxyue;

	/** 抵用金 */
	private Double dbyue;

	/** 金币 */
	private Double jinbi;

	/** 用户id */
	private Long userid;

	/** 0是未付款 1待发货 19 待收货 29待评价, 99确认收货，-1是关闭 */
	private Integer status;
	/** 付款操作,默认0,操作后是1 为了防止支付回调执行过多操作出错或者延迟导致的问题 */
	private Integer fkop;

	/** 付款时间 */
	private Date fkTime;

	/** 微信付款单号 */
	private Long fkid;

	/** 收货地址 */
	private String dizhi;

	/** 收件人号码 */
	private String sjphone;

	/** 收件人姓名 */
	private String sjrname;

	/** 快递单号 */
	private String kddh;

	/** 配送方式 */
	private String peisong;

	/** 发货时间 */
	private Date fhTime;
	/** 确认收货时间 */
	private Date shTime;

	/** 账务id */
	private Long zhangid;

	/** 备注 */
	private String remark;

	/** 关闭订单说明 */
	private String closeRemark;

	/** 宝贝数量 */
	private Integer bbnum;
	/** 是否分润 ,0是未分润，1是分润 */
	private Integer isfenrun;

	/** 省 */
	private String sheng;
	/** 市 */
	private String shi;
	/** 县 */
	private String xian;

	private SKUser user;
	/**
	 * 优惠卷
	 */
	private CardUser card;
	/**
	 * 支付明细
	 */
	List<SKOrder> orderList;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Double getYouhui() {
		return youhui;
	}

	public void setYouhui(Double youhui) {
		this.youhui = youhui;
	}

	public String getYouhuiid() {
		return youhuiid;
	}

	public void setYouhuiid(String youhuiid) {
		this.youhuiid = youhuiid;
	}

	public Double getTotal() {
		return total;
	}

	public void setTotal(Double total) {
		this.total = total;
	}

	public Double getYue() {
		return yue;
	}

	public void setYue(Double yue) {
		this.yue = yue;
	}

	public Double getWxyue() {
		return wxyue;
	}

	public void setWxyue(Double wxyue) {
		this.wxyue = wxyue;
	}

	public Double getDbyue() {
		return dbyue;
	}

	public void setDbyue(Double dbyue) {
		this.dbyue = dbyue;
	}

	public Double getJinbi() {
		return jinbi;
	}

	public void setJinbi(Double jinbi) {
		this.jinbi = jinbi;
	}

	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Long getFkid() {
		return fkid;
	}

	public void setFkid(Long fkid) {
		this.fkid = fkid;
	}

	public Long getZhangid() {
		return zhangid;
	}

	public void setZhangid(Long zhangid) {
		this.zhangid = zhangid;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getFkTime() {
		return fkTime;
	}

	public void setFkTime(Date fkTime) {
		this.fkTime = fkTime;
	}

	public String getDizhi() {
		return dizhi;
	}

	public void setDizhi(String dizhi) {
		this.dizhi = dizhi;
	}

	public String getSjphone() {
		return sjphone;
	}

	public void setSjphone(String sjphone) {
		this.sjphone = sjphone;
	}

	public String getSjrname() {
		return sjrname;
	}

	public void setSjrname(String sjrname) {
		this.sjrname = sjrname;
	}

	public String getKddh() {
		return kddh;
	}

	public void setKddh(String kddh) {
		this.kddh = kddh;
	}

	public Date getFhTime() {
		return fhTime;
	}

	public void setFhTime(Date fhTime) {
		this.fhTime = fhTime;
	}

	public Date getShTime() {
		return shTime;
	}
	public String getShTimeDay() {
		return DateUtils.format(shTime,DateUtils.DAY_FORMAT);
	}

	public void setShTime(Date shTime) {
		this.shTime = shTime;
	}

	public List<SKOrder> getOrderList() {
		return orderList;
	}

	public void setOrderList(List<SKOrder> orderList) {
		this.orderList = orderList;
	}

	public Double getLeiji() {
		return leiji;
	}

	public void setLeiji(Double leiji) {
		this.leiji = leiji;
	}

	public Integer getBbnum() {
		return bbnum;
	}

	public void setBbnum(Integer bbnum) {
		this.bbnum = bbnum;
	}

	public SKUser getUser() {
		return user;
	}

	public void setUser(SKUser user) {
		this.user = user;
	}

	public Integer getIsfenrun() {
		return isfenrun;
	}

	public void setIsfenrun(Integer isfenrun) {
		this.isfenrun = isfenrun;
	}

	public CardUser getCard() {
		return card;
	}

	public void setCard(CardUser card) {
		this.card = card;
	}

	public String getPeisong() {
		return peisong;
	}

	public void setPeisong(String peisong) {
		this.peisong = peisong;
	}

	public String getCloseRemark() {
		return closeRemark;
	}

	public void setCloseRemark(String closeRemark) {
		this.closeRemark = closeRemark;
	}

	public Long getSjid() {
		return sjid;
	}

	public void setSjid(Long sjid) {
		this.sjid = sjid;
	}

	public Integer getFkop() {
		return fkop;
	}

	public void setFkop(Integer fkop) {
		this.fkop = fkop;
	}

	public String getStatusStr() {
		SKDict dict = SKDictService.getDictCache(2, this.status + "");
		String temp = "";
		if (dict != null) {
			temp = dict.getName();
		}
		return temp;
	}

	public String getSheng() {
		return sheng;
	}

	public void setSheng(String sheng) {
		this.sheng = sheng;
	}

	public String getShi() {
		return shi;
	}

	public void setShi(String shi) {
		this.shi = shi;
	}

	public String getXian() {
		return xian;
	}

	public void setXian(String xian) {
		this.xian = xian;
	}

}
